package me.dqn.cloudfeign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author dqn
 * created at 2018/11/8 - 16:28
 */
@FeignClient(value = "CLIENT-HI",fallback = SayHelloHystrixFallback.class)
public interface SayHello {
    @GetMapping("/hi")
    public String hiToSomeone(@RequestParam("name") String name);
}
